home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Speech Synthesis Manager / Installer Source / ActionAtoms / AtomUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  1.3 KB  |  52 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  *
  3.  *    File:        AtomUtils.h -    C Header
  4.  *
  5.  *    Author:        Deric Horn
  6.  *
  7.  *    Interface to common Action Atom utility functions
  8.  *
  9.  *    History:    <1>    (12/2/94) Created this file.
  10.  *
  11.  *----------------------------------------------------------------------------*/
  12.  
  13. #include    <Files.h>
  14. #include    <Folders.h>
  15. #include    <Memory.h>
  16. #include    <ActionAtomIntf.h>
  17. #include    <string.h>
  18.  
  19. /* define record structure of 'infs' resource so that we can access the target file path */
  20.  
  21. struct infsRec {
  22.     long    fileType;
  23.     long    creator;
  24.     long    creationDate;
  25.     short    fileSpecFlags;
  26.     Str255    pathName;
  27. };
  28.  
  29. typedef struct infsRec infsRec;
  30. typedef infsRec *infsPtr, **infsHdl;
  31.  
  32. /* define record structure of 'intf' resource so that we can access the target file path */
  33. struct intfRec {
  34.     short    format;
  35.     short    targetFileSpecFlags;
  36.     OSType    fileType;
  37.     OSType    creator;
  38.     short    finderFlags;
  39.     long    creationDate;
  40.     long    modDate;
  41.     short    rsrcID;
  42.     Str255    pathName;
  43. };
  44. typedef struct intfRec intfRec;
  45. typedef intfRec **intfHdl;
  46.  
  47.  
  48. OSErr    StripFileName(char *str);
  49. long    DirIDFromSpecialPath( StringPtr path, short vRefNum );
  50. void    PathFromSpecialPath( StringPtr pathStorage, StringPtr path );
  51. OSErr    MakeFSSpecFromAAPB( FSSpecPtr myFS, StringPtr path, AAPBRecPtr myAAPBPtr );
  52. void    pStrcpy(unsigned char *dest, unsigned char *src);